package multiThreading;

import gui.DataGenerator;

import javax.swing.JTextArea;

public class DataFabThread implements Runnable {

    private DataGenerator datGen;
    private int table;
    private int entries;
    private JTextArea queryResults;
    
    public DataFabThread(final DataGenerator datGen, final int table, final int entries, final JTextArea queryResults) {
	this.datGen = datGen;
	this.table = table;
	this.entries = entries;
	this.queryResults = queryResults;
    }
    
    @SuppressWarnings("unused")
    private DataFabThread() {
	
    }
    
    @Override
    public void run() {
	datGen.generateData(entries, table, queryResults);
    }

}
